home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmCvtXmStringToCT.z / XmCvtXmStringToCT
Encoding:
Text File  |  2003-11-18  |  4.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmCCCCvvvvttttXXXXmmmmSSSSttttrrrriiiinnnnggggTTTTooooCCCCTTTT((((3333XXXX))))     UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV     XXXXmmmmCCCCvvvvttttXXXXmmmmSSSSttttrrrriiiinnnnggggTTTTooooCCCCTTTT((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_C_v_t_X_m_S_t_r_i_n_g_T_o_C_T - A    compound string    function that converts
  10.       a compound string to compound    text
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/Xm.h>
  14.  
  15.       char * XmCvtXmStringToCT (ssssttttrrrriiiinnnngggg)
  16.            _X_m_S_t_r_i_n_g       ssssttttrrrriiiinnnngggg;
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.       _X_m_C_v_t_X_m_S_t_r_i_n_g_T_o_C_T converts a compound    string to a (char *)
  20.       string in compound text format.  The application must    call
  21.       _X_t_A_p_p_I_n_i_t_i_a_l_i_z_e before calling this function.     The converter
  22.       uses the font    list tag associated with a given compound
  23.       string segment to select a compound text format for that
  24.       segment.  A registry defines a mapping between font list
  25.       tags and compound text encoding formats.  The    converter uses
  26.       the following    algorithm for each compound string segment:
  27.       If the compound string segment tag is    mapped to
  28.       _X_m_F_O_N_T_L_I_S_T__D_E_F_A_U_L_T__T_A_G in the    registry, the converter    passes
  29.       the text of the compound string segment to
  30.       _X_m_b_T_e_x_t_L_i_s_t_T_o_T_e_x_t_P_r_o_p_e_r_t_y with an encoding style of
  31.       _X_C_o_m_p_o_u_n_d_T_e_x_t_S_t_y_l_e and uses the resulting compound text for
  32.       that segment.     If the    compound string    segment    tag is mapped
  33.       to an    MIT registered charset in the registry,    the converter
  34.       creates the compound text for    that segment using the charset
  35.       (from    the registry) and the text of the compound string
  36.       segment as defined in    the X Consortium Standard Compound
  37.       Text Encoding.  _I_f _t_h_e _c_o_m_p_o_u_n_d _s_t_r_i_n_g _s_e_g_m_e_n_t _t_a_g _i_s    _m_a_p_p_e_d
  38.       _t_o _a _c_h_a_r_s_e_t _i_n _t_h_e _r_e_g_i_s_t_r_y _t_h_a_t _i_s _n_e_i_t_h_e_r
  39.       _X_m_F_O_N_T_L_I_S_T__D_E_F_A_U_L_T__T_A_G _n_o_r _a_n    _M_I_T _r_e_g_i_s_t_e_r_e_d _c_h_a_r_s_e_t,    _t_h_e
  40.       _c_o_n_v_e_r_t_e_r _c_r_e_a_t_e_s _t_h_e    _c_o_m_p_o_u_n_d _t_e_x_t _f_o_r _t_h_a_t _s_e_g_m_e_n_t _u_s_i_n_g
  41.       _t_h_e _c_h_a_r_s_e_t (_f_r_o_m _t_h_e    _r_e_g_i_s_t_r_y) _a_n_d _t_h_e _t_e_x_t _o_f _t_h_e _c_o_m_p_o_u_n_d
  42.       _s_t_r_i_n_g _s_e_g_m_e_n_t _a_s _a_n "_e_x_t_e_n_d_e_d _s_e_g_m_e_n_t" _w_i_t_h _a _v_a_r_i_a_b_l_e
  43.       _n_u_m_b_e_r _o_f _o_c_t_e_t_s _p_e_r _c_h_a_r_a_c_t_e_r.  _I_f _t_h_e _c_o_m_p_o_u_n_d _s_t_r_i_n_g
  44.       _s_e_g_m_e_n_t _t_a_g _i_s _n_o_t _m_a_p_p_e_d _i_n _t_h_e _r_e_g_i_s_t_r_y, _t_h_e _r_e_s_u_l_t    _i_s
  45.       _i_m_p_l_e_m_e_n_t_a_t_i_o_n _d_e_p_e_n_d_e_n_t.
  46.  
  47.       ssssttttrrrriiiinnnngggg
  48.            Specifies a compound string to be converted to compound
  49.            text.
  50.  
  51.      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  52.       Returns a (char *) string in compound    text format.  This
  53.       format is described in the X Consortium Standard Compound
  54.       Text Encoding.
  55.  
  56.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  57.       _X_m_C_v_t_C_T_T_o_X_m_S_t_r_i_n_g(_3_X), _X_m_F_o_n_t_L_i_s_t(_3_X),
  58.       _X_m_M_a_p_S_e_g_m_e_n_t_E_n_c_o_d_i_n_g(_3_X), _X_m_R_e_g_i_s_t_e_r_S_e_g_m_e_n_t_E_n_c_o_d_i_n_g(_3_X), and
  59.       _X_m_S_t_r_i_n_g.
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.